import request from '@/utils/request'

// 查询房间设施表列表
export function listRoomFacility(query) {
  return request({
    url: '/ihome/roomFacility/list',
    method: 'get',
    params: query
  })
}

// 查询房间设施表详细
export function getRoomFacility(facilityId) {
  return request({
    url: '/ihome/roomFacility/' + facilityId,
    method: 'get'
  })
}

// 新增房间设施表
export function addRoomFacility(data) {
  return request({
    url: '/ihome/roomFacility',
    method: 'post',
    data: data
  })
}

// 修改房间设施表
export function updateRoomFacility(data) {
  return request({
    url: '/ihome/roomFacility',
    method: 'put',
    data: data
  })
}

// 删除房间设施表
export function delRoomFacility(facilityId) {
  return request({
    url: '/ihome/roomFacility/' + facilityId,
    method: 'delete'
  })
}
